package chapterfour;

/**
 * Created by Think on 2016/3/18.
 */
public class XY2 {
    public static void main(String[] args) {
        int[][] cords = {{1, 2, 3}, {4, 5, 6}};
        for(int[] row:cords){ //得知有几列
            for(int value:row){ //得知每列有几个元素
                System.out.printf("%2d",value);
            }
            System.out.println();
        }
    }
}


